package chatBot.repository;

import chatBot.entity.Commodity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface CommodityRepository extends JpaRepository<Commodity, Long> {
    Optional<Commodity> findByCommodityType(Integer commodityType);

    Optional<Commodity> findByCommodityId(Long commodityType);

}
